<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>软件测试技术案例</title> 
<base href="<%=basePath%>"/>
<link rel="stylesheet" type="text/css" href="static/css/sm-default.css" />
<link rel="stylesheet" type="text/css" href="static/css/styles.css" />
<meta name="description" content="软件测试技术案例" />
<meta name="keywords" content="software testing, SpringMVC,Testing" />

</head>
<body> 
	<table  width="100%">
		<tr>
			<td>用户题目完成情况</td>
		</tr>
	</table> 
	    <table align="center" class="gridtable" >
       <c:forEach items="${list}" var="question" varStatus="vs">
	    <tr>  
        	<td>${((page.pageNum -1) * page.pageSize) + vs.index+1}</td>
        	<td>
       			 <table class="gridtable">
			        <tr>
				        <td width = 45px>题目</td>
				        <td width = 600px>
				        ${question.content} 
				    </tr>
			       	<tr>
				        <td>正确答案</td>
				        <td>${question.rightAnswer}  </td>
			        </tr>
			        <tr>
				        <td>你的答案</td>
				        <td>${question.answer} </td>
			        </tr>
			        <tr>
				        <td>回答情况</td>
				        <td>${question.answerInfo} </td>
			        </tr>
			        <tr>
				        <td>答题时间</td>
				        <td>${question.createTime} </td>
			        </tr>
        		</table> 
        		</td>
        		 
        		</tr>
 		 </c:forEach>
   	 
   	 <tr align="right">
    	<td colspan="9"> 
    			第${page.pageNum}页&nbsp;
    		共${page.total}页&nbsp;
    		<a href="question/list?pagenum=${page.firstPage}">首页</a>
    		<a href="question/list?pagenum=${page.prePage}"> 上一页</a>
    		<a href="question/list?pagenum=${page.nextPage}"> 下一页</a>
    	 	<a href="question/list?pagenum=${page.lastPage}"> 尾页</a>    	</td>
    </tr>	
   	</table> 
	 
</body>
</html>